import { DefineComponent} from "vue";
import Home from "../components/Home.vue";
import Rate from "../components/Rate.vue";
import Bookings from "../components/Bookings.vue";
import Apartments from "../components/Apartments.vue";
import Pricing from "../components/Pricing.vue";
import Support from "../components/Support.vue";
import Logout from "../components/Logout.vue";
const getComponent: (
  currentPage:string
) => DefineComponent<{}, {}, any> = (currentPage) => {
  console.log('datajs',currentPage);
  
  if (currentPage == "Home") {
    return Home;
  } else if (currentPage == "Rate") {
    return Rate;
  } else if (currentPage == "Bookings") {
    return Bookings;
  } else if (currentPage == "Apartments") {
    return Apartments;
  } else if (currentPage == "Pricing") {
    return Pricing;
  } else if (currentPage == "Support") {
    return Support;
  } else {
    return Logout;
  }
};
export { getComponent };
